#Requires AutoHotkey v2.0


;视频暂停
mediaPlayPause() {
  if (VideoPage && WinActive(VideoPage)) {
    send "{Media_Play_Pause}"
    ; send "{space}"
   }
}



;设置暂停视频窗口
setVideoPage() {
  global VideoPage
  if VideoPage && WinGetTitle("A") = VideoPage {
    VideoPage := 0
    OnlyInput.fixedTip("取消暂停视频窗口", 1000)
  } else {
    VideoPage := WinGetTitle('A')
    OnlyInput.fixedTip("视频窗口暂停设置为`n" . WinGetTitle('A'), 2000)
  }
}

